#-*-coding:utf-8-*-
import hou
class Rendering(object):
    def __init__(self):
        super(Rendering,self).__init__()

    def setMakeAllRenderNodesAvailableInToolPaletteAndTabMenu(self,bool):
        if bool == True:
            hou.setPreference('render.showallrops.val','1')
            # print('1')
        else:
            hou.setPreference('render.showallrops.val','0')
            # print('0')

    def getMakeAllRenderNodesAvailableInToolPaletteAndTabMenu(self):
        return hou.getPreference('render.showallrops.val')
        # print('getMakeAllRenderNodesAvailableInToolPaletteAndTabMenu')

